import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

class FlutterRootApp extends StatelessWidget {
  const FlutterRootApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData.light(),
      home: FlutterRootPage(),
    );
  }
}

class FlutterRootPage extends StatefulWidget {
  FlutterRootPage({super.key});

  @override
  State createState() {
    return FlutterRootState();
  }
}

class FlutterRootState extends State<FlutterRootPage> {
  List<int> t = [];

  @override
  void initState() {
    for (int i = 0; i < 1000000; i++) {
      t.add(i);
    }
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Container(
      color: const Color.fromARGB(255, 114, 157, 130),
      padding: EdgeInsets.fromLTRB(
        0,
        MediaQuery.of(context).padding.top,
        0,
        0,
      ),
      child: SizedBox(
        width: double.infinity,
        height: double.infinity,
        child: Column(
          mainAxisAlignment: MainAxisAlignment.start,
          children: <Widget>[
            // toolbar
            const SizedBox(
              height: 48,
              child: Row(
                children: [],
              ),
            ),
            GestureDetector(
              child: Text(
                '这是另一个入口 twoMain -> root',
                style: Theme.of(context).textTheme.headlineMedium,
              ),
              onTap: () {
                SystemNavigator.pop();
              },
            ),
          ],
        ),
      ),
    );
  }
}
